home *** CD-ROM | disk | FTP | other *** search
/ CD Schooolhouse Version 10.0 / CD Schooolhouse Version 10.0.ISO / pc / dos / misc / sstuff30 / safecopy.bat < prev    next >
Encoding:
DOS Batch File  |  1994-05-16  |  333 b   |  12 lines

  1. echo off
  2. rem SAFECOPY.BAT will copy a group of files to a new disk ONLY if
  3. rem enough room exists for all of the copied files.
  4. rem Syntax:
  5. rem SAFECOPY filespec d:
  6. rem For example:  SPACE C:\COMM\*.* e:
  7. rem copies all files in the C:\COMM directory to drive E.
  8. space %1 %2 /sk /c
  9. if errorlevel 1 goto end
  10. xcopy %1 %2
  11. :end
  12.